package com.aaa.service.scl.Impl;

import com.aaa.dao.scl.SclRecordDedtailDao;
import com.aaa.entity.scl.SclRecordDedtail;
import com.aaa.service.scl.SclRecordDedtailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (SclRecordDedtail)表服务实现类
 *
 * @author makejava
 * @since 2022-10-27 19:11:05
 */
@Service
public class SclRecordDedtailServiceImpl implements SclRecordDedtailService {
   @Autowired
   private SclRecordDedtailDao sclRecordDedtailDao;

   @Override
   public boolean insertBatch(List<SclRecordDedtail> details) {
      int i=0;
      for (SclRecordDedtail detail : details) {
         i+=sclRecordDedtailDao.insert(detail);
      }
      return details.size()==i;
   }
}

